package team.freeroom.hotelmanage.service;

import org.springframework.stereotype.Service;
import team.freeroom.hotelmanage.repository.entity.Account;
import java.util.List;
import java.util.Map;

@Service
public interface AccountService {
    int add(Account account);
    int edit(Account account);
    int delete(Long id);
    List<Account> findList(Map<String, Object> queryMap);
    Integer getTotal(Map<String, Object> queryMap);
    Account find(Long id);
    Account findByName(String name);
    List<Account> findAll();
    // 判断是否再黑名单内
    boolean isBlack(String idCard);
}
